/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * pnlRoleFunction.java
 *
 * Created on 12-08-2011, 07:52:51
 */

package tuitionmanagement.gui;

/**
 *
 * @author NHAN
 */
public class pnlRoleFunction extends javax.swing.JPanel {

    /** Creates new form pnlRoleFunction */
    public pnlRoleFunction() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        pnlList = new javax.swing.JPanel();
        lblRoleList = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTRoleList = new javax.swing.JTable();
        pnlTitle = new javax.swing.JPanel();
        lblRoleFunction = new javax.swing.JLabel();
        pnlFunction = new javax.swing.JPanel();
        JSlRole = new javax.swing.JScrollPane();
        btnSave = new javax.swing.JButton();

        setLayout(new java.awt.GridBagLayout());

        pnlList.setLayout(new java.awt.GridBagLayout());

        lblRoleList.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblRoleList.setForeground(new java.awt.Color(0, 0, 204));
        lblRoleList.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        lblRoleList.setText("Role List");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.insets = new java.awt.Insets(10, 5, 5, 5);
        pnlList.add(lblRoleList, gridBagConstraints);

        jTRoleList.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null},
                {null, null},
                {null, null},
                {null, null}
            },
            new String [] {
                "Role ID", "Role Name"
            }
        ));
        jScrollPane1.setViewportView(jTRoleList);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 0.3;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 0, 5);
        pnlList.add(jScrollPane1, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.gridheight = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 0.3;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 5, 20, 10);
        add(pnlList, gridBagConstraints);

        pnlTitle.setLayout(new java.awt.GridBagLayout());

        lblRoleFunction.setFont(new java.awt.Font("Tahoma", 0, 18));
        lblRoleFunction.setForeground(new java.awt.Color(0, 0, 204));
        lblRoleFunction.setText("ROLE FUNCTION MANAGEMENT");
        pnlTitle.add(lblRoleFunction, new java.awt.GridBagConstraints());

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 0.7;
        gridBagConstraints.insets = new java.awt.Insets(15, 10, 10, 10);
        add(pnlTitle, gridBagConstraints);

        pnlFunction.setBackground(new java.awt.Color(231, 231, 240));
        pnlFunction.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Function List", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N
        pnlFunction.setLayout(new java.awt.GridBagLayout());
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.weightx = 0.7;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(10, 10, 10, 10);
        pnlFunction.add(JSlRole, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 0.7;
        gridBagConstraints.weighty = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 20, 5);
        add(pnlFunction, gridBagConstraints);

        btnSave.setIcon(new javax.swing.ImageIcon(getClass().getResource("/tuitionmanagement/icon/save_as.png"))); // NOI18N
        btnSave.setText("Save");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.ipadx = 50;
        gridBagConstraints.ipady = 10;
        gridBagConstraints.insets = new java.awt.Insets(0, 11, 6, 7);
        add(btnSave, gridBagConstraints);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JScrollPane JSlRole;
    private javax.swing.JButton btnSave;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTRoleList;
    private javax.swing.JLabel lblRoleFunction;
    private javax.swing.JLabel lblRoleList;
    private javax.swing.JPanel pnlFunction;
    private javax.swing.JPanel pnlList;
    private javax.swing.JPanel pnlTitle;
    // End of variables declaration//GEN-END:variables

}
